.custom-table {
  .micro-ant-table {
    .micro-ant-table-thead > tr > th,
    .micro-ant-table-tbody > tr > td,
    tfoot > tr > th,
    tfoot > tr > td {
      padding: 7px 24px;
      color: #666;
    }
    .micro-ant-table-thead
      > tr
      > th:not(:last-child):not(.micro-ant-table-selection-column):not(
        .micro-ant-table-row-expand-icon-cell
      ):not([colspan])::before {
      display: none;
    }
    .micro-ant-table-thead > tr > th {
      border-bottom: none;
    }
    .micro-ant-table-tbody > tr > td {
      padding: 17px 24px;
    }
  }
}

// antdesign 日期组件快捷选项标签样式
.micro-ant-picker-dropdown {
  .micro-ant-picker-preset > .micro-ant-tag-blue {
    background: none !important;
    border: none;
  }
}

// 去除阴影效果
.micro-ant-picker-focused,
.micro-ant-select-focused:not(.micro-ant-select-disabled).micro-ant-select:not(
    .micro-ant-select-customize-input
  )
  .micro-ant-select-selector,
.micro-ant-input-affix-wrapper-focused,
.micro-ant-input-number-focused {
  box-shadow: none !important;
}

.anticon {
  display: flex !important;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  height: 100%;
}
.micro-ant-select-arrow .anticon {
  vertical-align: top !important;
}

// 多选样式
.micro-ant-checkbox-wrapper {
  align-items: center !important;
  .micro-ant-checkbox {
    top: unset;
  }
}
// 修改复选框半选状态
.micro-ant-checkbox-indeterminate {
  .micro-ant-checkbox-inner {
    background-color: var(--themecolor) !important;
    border-color: var(--themecolor) !important;
    &::after {
      height: 2px !important;
      background-color: #fff !important;
    }
  }
}

// ant daterang 更改选中虚线颜色为主色
.micro-ant-picker-content {
  .micro-ant-picker-cell-in-view.micro-ant-picker-cell-range-hover-start:not(
      .micro-ant-picker-cell-in-range
    ):not(.micro-ant-picker-cell-range-start):not(.micro-ant-picker-cell-range-end)::after,
  .micro-ant-picker-cell-in-view.micro-ant-picker-cell-range-hover-end:not(
      .micro-ant-picker-cell-in-range
    ):not(.micro-ant-picker-cell-range-start):not(.micro-ant-picker-cell-range-end)::after,
  .micro-ant-picker-cell-in-view.micro-ant-picker-cell-range-hover-start.micro-ant-picker-cell-range-start-single::after,
  .micro-ant-picker-cell-in-view.micro-ant-picker-cell-range-hover-start.micro-ant-picker-cell-range-start.micro-ant-picker-cell-range-end.micro-ant-picker-cell-range-end-near-hover::after,
  .micro-ant-picker-cell-in-view.micro-ant-picker-cell-range-hover-end.micro-ant-picker-cell-range-start.micro-ant-picker-cell-range-end.micro-ant-picker-cell-range-start-near-hover::after,
  .micro-ant-picker-cell-in-view.micro-ant-picker-cell-range-hover-end.micro-ant-picker-cell-range-end-single::after,
  .micro-ant-picker-cell-in-view.micro-ant-picker-cell-range-hover:not(
      .micro-ant-picker-cell-in-range
    )::after {
    border-top: 1px dashed var(--themecolor) !important;
    border-bottom: 1px dashed var(--themecolor) !important;
  }

  .micro-ant-picker-cell-in-view.micro-ant-picker-cell-range-hover:last-child::after,
  .micro-ant-picker-cell-in-view.micro-ant-picker-cell-range-hover-start:last-child::after,
  .micro-ant-picker-cell-in-view.micro-ant-picker-cell-end.micro-ant-picker-cell-range-hover-edge-end.micro-ant-picker-cell-range-hover-edge-end-near-range::after,
  .micro-ant-picker-cell-in-view.micro-ant-picker-cell-range-hover-edge-end:not(
      .micro-ant-picker-cell-range-hover-edge-end-near-range
    )::after,
  .micro-ant-picker-cell-in-view.micro-ant-picker-cell-range-hover-end::after {
    border-right: 1px dashed var(--themecolor) !important;
  }

  .micro-ant-picker-cell-in-view.micro-ant-picker-cell-range-hover:first-child::after,
  .micro-ant-picker-cell-in-view.micro-ant-picker-cell-range-hover-end:first-child::after,
  .micro-ant-picker-cell-in-view.micro-ant-picker-cell-start.micro-ant-picker-cell-range-hover-edge-start.micro-ant-picker-cell-range-hover-edge-start-near-range::after,
  .micro-ant-picker-cell-in-view.micro-ant-picker-cell-range-hover-edge-start:not(
      .micro-ant-picker-cell-range-hover-edge-start-near-range
    )::after,
  .micro-ant-picker-cell-in-view.micro-ant-picker-cell-range-hover-start::after {
    border-left: 1px dashed var(--themecolor) !important;
  }

  .micro-ant-picker-cell-in-view.micro-ant-picker-cell-in-range.micro-ant-picker-cell-range-hover::before,
  .micro-ant-picker-cell-in-view.micro-ant-picker-cell-range-start.micro-ant-picker-cell-range-hover::before,
  .micro-ant-picker-cell-in-view.micro-ant-picker-cell-range-end.micro-ant-picker-cell-range-hover::before,
  .micro-ant-picker-cell-in-view.micro-ant-picker-cell-range-start:not(
      .micro-ant-picker-cell-range-start-single
    ).micro-ant-picker-cell-range-hover-start::before,
  .micro-ant-picker-cell-in-view.micro-ant-picker-cell-range-end:not(
      .micro-ant-picker-cell-range-end-single
    ).micro-ant-picker-cell-range-hover-end::before,
  .micro-ant-picker-panel
    > :not(.micro-ant-picker-date-panel)
    .micro-ant-picker-cell-in-view.micro-ant-picker-cell-in-range.micro-ant-picker-cell-range-hover-start::before,
  .micro-ant-picker-panel
    > :not(.micro-ant-picker-date-panel)
    .micro-ant-picker-cell-in-view.micro-ant-picker-cell-in-range.micro-ant-picker-cell-range-hover-end::before {
    background: var(--themecolor02) !important;
  }
  .micro-ant-picker-cell-inner::after {
    background: var(--themecolor02) !important;
  }
}
